package Cordiali_Es2;

import java.io.FileWriter;
import java.io.IOException;

import Cordiali_Es2.Server.QueueType;
import arjuna.*;
import arjuna.JavaSim.Distributions.ErlangStream;
import arjuna.JavaSim.Distributions.ExponentialStream;
import arjuna.JavaSim.Simulation.Scheduler;
import arjuna.JavaSim.Simulation.SimulationProcess;
import arjuna.JavaSim.Statistics.Variance;

@SuppressWarnings("unused")

public class Validazione {

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		
		//ECommerceShop m = new ECommerceShop(Double.parseDouble(args[0])/100,2,1);
		//ECommerceShop m = new ECommerceShop(0.6,2,1, 1.0f/3, 1.0f/3, QueueType.FIFO, QueueType.FIFO, 1, 1, true, 10);
		
		/*
		ECommerceShop m = new ECommerceShop(0.6,2,1, 1.0f/3, 1.0f/3, QueueType.FIFO, QueueType.FIFO, 1, 1, true);
		
		m.Await();
		m.terminate();
		
		Scheduler.reset();*/
		
		ECommerceShop m = new ECommerceShop(1,2,1, 1.0f/3, 1.0f/3, QueueType.FIFO, QueueType.FIFO, 1, 1, true);
		m.Await();
		m.terminate();
		Scheduler.reset();
		for(int i=0;i<0;i++){
			
			m = new ECommerceShop(1.0,2,1, 1.0f/3, 1.0f/3, QueueType.FIFO, QueueType.FIFO, 1, 1, true, m.GetSeedsData());

			m.Await();
			m.terminate();
			Scheduler.reset();
		}
		
//		m = new ECommerceShop(0.65,2,1, 1.0f/3, 1.0f/3, QueueType.PT, QueueType.PT, 1, 9);
//		//SimulationProcess.Current = m;
//		
//		m.Await();
//		m.terminate();
		
		System.out.println("finish");
		System.exit(1);
	}

}
